package com.example.module_course.utils


import androidx.navigation.NavType
import androidx.navigation.navArgument
import com.alibaba.android.arouter.launcher.ARouter
import com.example.module_course.R

import com.fenghuajueli.module_route.PlayVideoModuleRoute

data class VideoCourseEntity(
    val name: String,
    val url: String,
    val imgRes: Int,
    val category: String
)


val videoCourseEntityList = listOf(
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1Uk4y1671T", name = "雅思基础听说课", imgRes = R.mipmap.img_jck_1),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1Ut4y1y7kc", name = "雅思基础读写课", imgRes = R.mipmap.img_jck_2),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1qG411L7Nr", name = "【雅思备考干货】0基础小白如何自学", imgRes = R.mipmap.img_jck_3),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1vS4y1Y7QY", name = "雅思零基础导学课", imgRes = R.mipmap.img_jck_4),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1aK4y1b7FU", name = "Sharon｜雅思发音、词汇、语法基础视频课", imgRes = R.mipmap.img_jck_5),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1dj411J7cE", name = "从零基础到大佬均可适用的雅思网课，超提分攻略！", imgRes = R.mipmap.img_jck_6),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1w94y1u7E4", name = "超全雅思备考小白避坑指南", imgRes = R.mipmap.img_jck_7),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV14T4y1h7ug", name = "最全雅思网课合集", imgRes = R.mipmap.img_jck_8),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1Ws4y197xc", name = "零基础学雅思从1-8分", imgRes = R.mipmap.img_jck_9),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1Do4y1x713", name = "16个小时让你彻底搞懂雅思语法！", imgRes = R.mipmap.img_jck_10),
    VideoCourseEntity(category = "基础课", url = "bilibili_BV1rc411s7tH", name = "最基础的雅思词汇课！7天轻松拿下雅思2000+高频单词！", imgRes = R.mipmap.img_jjk_1),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1pm4y1m78z", name = "45天稳过雅思8.5！迅速提分课程！", imgRes = R.mipmap.img_jjk_2),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1q64y1J7Tk", name = "keith老师口语课程", imgRes = R.mipmap.img_jjk_3),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1wW4y1P7z4", name = "雅思听说读写全科魔鬼训练", imgRes = R.mipmap.img_jjk_5),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1Vt4y1b7cd", name = "雅思口语高分课程 Vocabulary for IELTS Speaking", imgRes = R.mipmap.img_jjk_6),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1Wa4y1k7zD", name = "雅思听力公开课｜从出题人视角解决听力问题", imgRes = R.mipmap.img_jjk_7),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV12p4y1i7h4", name = "雅思阅读应试技巧", imgRes = R.mipmap.img_jjk_8),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1Gd4y1S7ca", name = "8节课学完雅思听力 | 雅思听力方法论", imgRes = R.mipmap.img_jjk_9),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV16L4y1V7mM", name = "Simon全套雅思阅读网课", imgRes = R.mipmap.img_jjk_10),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1fz4y1d7iE", name = "超强雅思写作教程合集", imgRes = R.mipmap.img_jjk_1),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1h7411b73J", name = "雅思考试课程", imgRes = R.mipmap.img_jck_2),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV145411a7ST", name = "7节课突破雅思写作7分", imgRes = R.mipmap.img_jck_3),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1xy4y1K71K", name = "沉浸式雅思单词通关", imgRes = R.mipmap.img_jck_4),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1Q64y1z7ey", name = "雅思系列课程|雅思听力|雅思阅读|雅思写作|雅思口语", imgRes = R.mipmap.img_jck_5),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1rA41157T2", name = "雅思考试(IELTS)听说读写全系列稳拿高分", imgRes = R.mipmap.img_jck_6),
    VideoCourseEntity(category = "进阶课", url = "bilibili_BV1CY4y1n7mz", name = "Simon全套雅思口语网课", imgRes = R.mipmap.img_jck_7),
)

val collegeEntityList = listOf(
    "美国" to R.mipmap.icon_meiguo_1,
    "美国" to R.mipmap.icon_meiguo_2,
    "美国" to R.mipmap.icon_meiguo_3,
    "英国" to R.mipmap.icon_yingguo_1,
    "英国" to R.mipmap.icon_yingguo_2,
    "英国" to R.mipmap.icon_yingguo_3,
    "澳大利亚" to R.mipmap.icon_adly_1,
    "澳大利亚" to R.mipmap.icon_adly_2,
    "澳大利亚" to R.mipmap.icon_adly_3,
    "加拿大" to R.mipmap.icon_jnd_1,
    "加拿大" to R.mipmap.icon_jnd_2,
    "加拿大" to R.mipmap.icon_jnd_3,
    "新加坡" to R.mipmap.icon_xjp_1,
    "新加坡" to R.mipmap.icon_xjp_2,
    "新加坡" to R.mipmap.icon_xjp_3,
)
val popularVideoList = listOf(
    VideoCourseEntity(category = "人气好课", url = "bilibili_BV1Do4y1x713", name = "16个小时让你彻底搞懂雅思语法！", imgRes = R.mipmap.img_jck_7),
    VideoCourseEntity(category = "人气好课", url = "bilibili_BV1wW4y1P7z4", name = "雅思听说读写全科魔鬼训练", imgRes = R.mipmap.img_jck_8),
    VideoCourseEntity(category = "人气好课", url = "bilibili_BV1Wa4y1k7zD", name = "雅思听力公开课｜从出题人视角解决听力问题", imgRes = R.mipmap.img_jck_9),
    VideoCourseEntity(category = "人气好课", url = "bilibili_BV12p4y1i7h4", name = "雅思阅读应试技巧", imgRes = R.mipmap.img_jck_10),
    VideoCourseEntity(category = "人气好课", url = "bilibili_BV16L4y1V7mM", name = "Simon全套雅思阅读网课", imgRes = R.mipmap.img_jjk_1),
    VideoCourseEntity(category = "人气好课", url = "bilibili_BV1xy4y1K71K", name = "沉浸式雅思单词通关", imgRes = R.mipmap.img_jjk_4),
)



sealed class MainPageRoute(val routeName: String) {
    data object Home : MainPageRoute("首页")
    data object Video : MainPageRoute("更多视频") {
        val routeNameWithArgument = "$routeName/{courseType}"
        val arguments = listOf(navArgument(name = "courseType") {
            type = NavType.StringType
        })
    }
}

//10天突破雅思基础
internal val bannerVideoId = "bilibili_BV1Uk4y1671T"

//雅思口语8.0分高分上岸
internal val famousTeacherVideoId1 = "bilibili_BV1CY4y1n7mz"

//学会用英语思考，说话清晰自然
internal val famousTeacherVideoId2 = "bilibili_BV1pm4y1m78z"

internal fun String.openVideo() {
    ARouter
        .getInstance()
        .build(PlayVideoModuleRoute.ACTIVITY_VIDEO_LIST_PLAY)
        .withString("playListId", this)
        .navigation()
}